# Maintainer: Jelle van der Waa <jelle@vdwaa.nl>

_name=zabbix-api
pkgname=python-zabbix-api
pkgver=0.5.6
pkgrel=1
pkgdesc="Python Zabbix API"
arch=(any)
url="https://pypi.org/project/zabbix-api"
license=('LGPL')
depends=('python')
makedepends=('python-setuptools')
source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz)
sha512sums=('4076c1259ffcc97bf7c0b4cb2006c9f4b6852922afac134647274261cade0d0d66950cf4a498b341fe3af2bed402c9887f16295324448e29a8e2461218d23240')

build() {
  cd "$_name-$pkgver"
  python setup.py build
}

package() {
  cd "$_name-$pkgver"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
